<template>

  <!-- <div class="designer-picbox-content fl">
                        <span>张辉武</span>
                        <i class="four"></i>
                        <p>产品设计师</p>
                        <ol style="margin:0">擅长智能硬件</ol>
                        <ol>服务汉王</ol>
                        <ol>获红星奖</ol>
                    </div> -->
  <span class="card-span">
    <span class="card-span1">
      <img :src="picUrl" style="width:100%;height:100%;">
      <button class="card-btn"><i class="btn-i"></i>指定咨询TA</button>
    </span>
    <span class="card-span2">
      <span>{{name}}<i class="card-i" v-bind:style="{background: 'url(' + iconUrl + ')'}"></i></span>

      <p class="card-title">{{title}}</p>
      <div>
        <template v-for="item in tags">
          <ol class="card-tag-ol" v-bind:key="item">{{item}}</ol>
        </template>
      </div>

    </span>
  </span>

</template>

<script>
export default {
  name: "PeopleCard2",
  props: {
    picUrl: String,
    iconUrl: String,
    name: String,
    title: String,
    tags: Array
  },
  methods: {
    doClick() {
      this.$emit("clickCallBack");
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.card-span {
  text-align: start;

  height: 110px;
  display: flex;
  flex-direction: row;
  /* width: 377px; */
  flex: 0 0 32%;

  /* flex: 1; */
  position: relative;
  background: #fff;
  border: 1px solid #f0f0f0;
  margin-bottom: 24px;
  margin-right: 10px;
  padding-left: 10px;
  box-sizing: border-box;
}

.card-span1 {
  width: 100px;
  height: 110px;
  margin-right: 10px;
  position: relative;
  top: -10px;
}
.card-span2 {
  display: flex;
  flex-direction: column;
}
.card-btn {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 24px;
  background: rgba(16, 139, 238, 0.9);
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
  border-style: none;
  outline: 0;
  padding: 0;
  cursor: pointer;
}
.btn-i {
  background: url("https://tva1.sinaimg.cn/large/006y8mN6ly1g7xy918b23j300c00b05w.jpg")
    no-repeat;
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 4px;
  padding-top: 4px;
  position: relative;
  top: 6px;
}

.card-name {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  display: inline-block;
  margin-right: 4px;
}

.card-i {
  display: inline-block;
  margin-left: 8px;
  width: 48px;
  height: 22px;
  background: url(/images/designer/005.png?v=12-7) no-repeat;
  position: relative;
  top: 6px;
}

.card-tag-ol {
  float: left;
  padding-left: 4px;
  padding-right: 4px;
  margin-right: 6px;
  border: 1px solid #ccc;
  height: 24px;
  background: #fff;
  border-radius: 4px;
  line-height: 24px;
  font-size: 12px;
}

.card-span:hover .mask {
  opacity: 1;
}

.card-span:hover .origin-content {
  opacity: 0;
}

.origin-content {
  opacity: 1;
}

.mask {
  padding-left: 20px;
  padding-top: 30px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 300px;
  left: 0;
  right: 0;
  text-align: center;
  -webkit-backface-visibility: hidden; /* 隐藏旋转元素的背面*/
  backface-visibility: hidden;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  -webkit-transition: all 2s ease-in-out;
  -moz-transition: all 2s linear;
  transition: all 2s cubic-bezier(0.23, 1, 0.32, 1);

  -ms-transform: scaleY(1);
  transform: scaleY(1);
  transform-origin: left bottom;
}

.card-title {
  font-size: 14px;
  color: #888;
  display: block;
  margin-bottom: 14px;
}

.card-sub-title {
  font-size: 18px;
  color: #f5f5f5;
  letter-spacing: 1px;
  line-height: 35px;
}

.myButton {
  background: transparent;
  color: white;
  border: 1px solid #ffffff;
  border-radius: 0;
  font-weight: bold;
  padding: 10px 55px 35px 55px;
  font-size: 20px;
}
.myButton:hover {
  background: #35bfa5;
  border: 0;
}
</style>
